package cn.lingyangwl.agile.food.model.rqrs.sku;

import cn.lingyangwl.agile.model.constants.ValidationCons;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 库存单据记录
 *
 * @author shenguangyang
 */
@Getter
@Setter
public class SkuInOutRecordBase {
    @NotNull(message = ValidationCons.NOT_EMPTY)
    @ApiModelProperty(value = "库存单据类型, 正数表示入库, 负数表示出库")
    private Integer type;

    @ApiModelProperty(value = "备注")
    private String remark;

    @NotNull(message = ValidationCons.NOT_EMPTY)
    @ApiModelProperty(value = "总金额")
    private BigDecimal totalPrice;

    @NotEmpty(message = ValidationCons.NOT_EMPTY)
    @ApiModelProperty(value = "状态, 1: 待审核, 2: 已审核 3. 拒绝")
    private String status;

    @ApiModelProperty(value = "拒绝理由")
    private String refuseReason;

    @ApiModelProperty(value = "审核时间")
    private Date auditTime;
}
